package com.mf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mf.entity.bo.UserBo;
import com.mf.entity.request.PagingRequest;
import com.mf.entity.request.search.UserPageListSearch;
import com.mf.entity.request.user.*;
import com.mf.entity.vo.UserVo;

/**
*  服务类
*
* @author mf
* @since 2024-07-18
*/
    public interface IUserService extends IService<UserBo> {

    void updateLoginTime(long userId);

    void register(UserRegisterRequest userRegisterRequest);

    UserTokenRequest login(UserLoginRequest userLoginRequest);

    Void edit(UserVo userVo);

    Integer adminChangeUserPwd(AdminChangeUserPwdRequest adminChangeUserPwdRequest);

    Integer userChangePwd(UserChangePwdRequest userChangePwdRequest);

    UserVo findById(Long id);

    Integer changeStatusByUser(Integer status, Long id);

    Page<UserVo> pageList(UserPageListSearch userPageListSearch);
}
